<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
   <head>
      <meta charset="utf-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <title><?php echo ($CONF['shopTitle']['fieldValue']); ?>后台管理中心</title>
      <link href="/tonglai/wstmall2/Public/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
      <link href="/tonglai/wstmall2/Apps/Admin/View/css/AdminLTE.css" rel="stylesheet" type="text/css" />
      <!--[if lt IE 9]>
      <script src="/tonglai/wstmall2/Public/js/html5shiv.min.js"></script>
      <script src="/tonglai/wstmall2/Public/js/respond.min.js"></script>
      <![endif]-->
      <script src="/tonglai/wstmall2/Public/js/jquery.min.js"></script>
      <script src="/tonglai/wstmall2/Public/plugins/bootstrap/js/bootstrap.min.js"></script>
      <script src="/tonglai/wstmall2/Public/js/common.js"></script>
      <script src="/tonglai/wstmall2/Public/plugins/layer/layer.min.js"></script>
      <script src="/tonglai/wstmall2/Public/plugins/plugins/plugins.js"></script>
   </head>
   <style>
   *{box-sizing:content-box;}
   </style>
   <body class='wst-page'>
     <form action='<?php echo U('Admin/LogMoneys/index');?>' method='post' autocomplete="off">
       <div class='wst-tbar' style='height:25px;'>
       <div style='float:left;'>
                            会员类型：<select name='targetType'>
				 <option value='-1'>全部</option>
				 <option value='0' <?php if($targetType == 0 ): ?>selected<?php endif; ?>>普通会员</option>
				 <option value='1' <?php if($targetType == 1 ): ?>selected<?php endif; ?>>店铺会员</option>
				</select>
                             流水类型：<select name='moneyType'>
				  <option value='-1'>全部</option>
				  <option value='1' <?php if($moneyType == 1 ): ?>selected<?php endif; ?>>收入</option>
				  <option value='0' <?php if($moneyType == 0 ): ?>selected<?php endif; ?>>支出</option>
				</select>
		    流水来源：<select name='dataSrc'>
				  <option value='-1'>全部</option>
				  <option value='1' <?php if($dataSrc == 1 ): ?>selected<?php endif; ?>>订单结算</option>
				  <option value='2' <?php if($dataSrc == 2 ): ?>selected<?php endif; ?>>用户订单充值</option>
				  <option value='3' <?php if($dataSrc == 3 ): ?>selected<?php endif; ?>>申请提现</option>
				  <option value='4' <?php if($dataSrc == 4 ): ?>selected<?php endif; ?>>分销佣金</option>
				  <option value='5' <?php if($dataSrc == 5 ): ?>selected<?php endif; ?>>订单支出</option>
				  <option value='6' <?php if($dataSrc == 6 ): ?>selected<?php endif; ?>>订单退款</option>
			    </select>
		   时间：<input type='text' id='startDate' class='laydate-icon' name='startDate' value='<?php echo ($startDate); ?>' style='width:100px' placeholder='开始日期' onclick='laydate({format: "YYYY-MM-DD"})'/>
             <input type='text' id='endDate' class='laydate-icon' name='endDate' value='<?php echo ($endDate); ?>' style='width:100px' placeholder='结束日期' onclick='laydate({format: "YYYY-MM-DD"})'/>
		关键字：<input type="text" name="key" style='width:120px;' value='<?php echo ($key); ?>'/>
		<button type="submit" class="btn btn-primary glyphicon glyphicon-search">查询</button> 
       </div>
       </form>
       <div class="wst-body"> 
        <table class="table table-hover table-striped table-bordered wst-list">
           <thead>
             <tr>
               <th width='10'>&nbsp;</th>
               <th width='80'>会员类型</th>
               <th width='130'>会员</th>
			   <th width='100'>资金类型</th>
			   <th width='100'>资金来源</th>
			   <th width='80'>金额</th>
			   <th width='*'>备注</th>
			   <th width='150'>时间</th>
             </tr>
           </thead>
           <tbody>
            <?php if(is_array($Page['root'])): $i = 0; $__LIST__ = $Page['root'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
               <td><?php echo ($i); ?></td>
               <td><?php if($vo['targetType'] == 1): ?>店铺<?php else: ?>会员<?php endif; ?></td>
               <td><?php echo ($vo['targetName']); ?></td>
               <td><?php if($vo['moneyType'] == 1): ?>收入<?php else: ?>支出<?php endif; ?></td>
               <td>
               <?php if($vo['dataSrc'] == 1): ?>商家结算<?php endif; ?>
               <?php if($vo['dataSrc'] == 2): ?>用户订单充值<?php endif; ?>
               <?php if($vo['dataSrc'] == 3): ?>申请提现<?php endif; ?>
               <?php if($vo['dataSrc'] == 4): ?>分销佣金<?php endif; ?>
               <?php if($vo['dataSrc'] == 5): ?>订单支出<?php endif; ?>
               <?php if($vo['dataSrc'] == 6): ?>订单退款<?php endif; ?>
               </td>
               <td><?php echo ($vo['money']); ?></td>
               <td><?php echo ($vo['moneyRemark']); ?></td>
               <td><?php echo ($vo['createTime']); ?></td>
             </tr><?php endforeach; endif; else: echo "" ;endif; ?>
             <tr>
                <td colspan='8' align='center'><?php echo ($Page['pager']); ?></td>
             </tr>
           </tbody>
        </table>
       </div>
   </body>
</html>